﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Drawing;

namespace Beeldbankmvc.Models
{
    public class CollectionModel
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "Naam is verplicht")]
        [StringLength(50, ErrorMessage = "Naam mag maximaal 50 karakters bevatten")]
        [DataType(DataType.Text)]
        [DisplayName("Naam")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Beschrijving is verplicht")]
        [StringLength(500, ErrorMessage = "Beschrijving mag maximaal 500 karakters bevatten")]
        [DataType(DataType.Text)]
        [DisplayName("Beschrijving")]
        public string Description { get; set; }

        [Required(ErrorMessage = "Keyword is verplicht")]
        [StringLength(500, ErrorMessage = "Keywords mag maximaal 500 karakters bevatten")]
        [DataType(DataType.Text)]
        [DisplayName("Keywords")]
        public string Keywords { get; set; }

        [Required(ErrorMessage = "Tonen in app is verplicht")]
        [DisplayName("Toon in app")]
        [DataType(DataType.Text)]
        public bool AppApproved { get; set; }

        [DisplayName("Foto")]
        public byte[] ThumbNail { get; set; } 
    }
}